package com.questionGenerator.service.Impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.questionGenerator.dto.resp.PointDTO;
import com.questionGenerator.mapper.PointMapper;
import com.questionGenerator.model.PointDO;
import com.questionGenerator.service.PointService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: usagi
 * @Date: 2024/04/17/18:51
 * @Description:
 */
@Service
public class PointServiceImpl extends ServiceImpl<PointMapper, PointDO> implements PointService {

    @Override
    public List<PointDTO> getPointList() {
        return BeanUtil.copyToList(baseMapper.selectList(null),PointDTO.class);
    }
}
